package dancespeedymodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceQuiz 题库
type DanceQuiz struct {
	Id        int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	Quiz      string         `json:"quiz" gorm:"column:quiz;type:varchar(500);not null;default:'';comment:问题"`
	Answer    string         `json:"answer" gorm:"column:answer;type:varchar(500);not null;default:'';comment:选项"`
	Status    int            `json:"status" gorm:"column:status;type:tinyint;default:0;not null;comment: 答案是第几个"` //
	CreatedAt time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
